import java.util.Date;

public class Product {
    private int id;
    private final String name;
    private final int quantity;
    private final double price;
    private final Date expirationDate;

    // Constructors, getters, and setters
    public Product(int id, String name, int quantity, double price, Date expirationDate) {
        this.name = name;
        this.id = id;
        this.quantity = quantity;
        this.price = price;
        this.expirationDate = expirationDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public int getQuantity() {
        return quantity;
    }

    public double getPrice() {
        return price;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", quantity=" + quantity +
                ", price=" + price +
                ", expirationDate=" + expirationDate +
                '}';
    }
    // ... getters and setters ...
}
